package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.TycResearchMapper;
import com.ruoyi.domain.TycResearch;
import com.ruoyi.service.ITycResearchService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-14
 */
@Service
public class TycResearchServiceImpl implements ITycResearchService 
{
    @Autowired
    private TycResearchMapper tycResearchMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TycResearch selectTycResearchById(Long id)
    {
        return tycResearchMapper.selectTycResearchById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tycResearch 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TycResearch> selectTycResearchList(TycResearch tycResearch)
    {
        return tycResearchMapper.selectTycResearchList(tycResearch);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tycResearch 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTycResearch(TycResearch tycResearch)
    {
        return tycResearchMapper.insertTycResearch(tycResearch);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tycResearch 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTycResearch(TycResearch tycResearch)
    {
        return tycResearchMapper.updateTycResearch(tycResearch);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTycResearchByIds(String ids)
    {
        return tycResearchMapper.deleteTycResearchByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTycResearchById(Long id)
    {
        return tycResearchMapper.deleteTycResearchById(id);
    }

    @Override
    public int submitApplications(Long id) {
        return tycResearchMapper.submitApplications(id);
    }

    @Override
    public int updateSubmitForApproval(Long id) {
        return tycResearchMapper.updateSubmitForApproval(id);
    }

    @Override
    public int withdrawClaim(Long id) {
        return tycResearchMapper.withdrawClaim(id);
    }

    @Override
    public int refusal(Long id) {
        return tycResearchMapper.refusal(id);
    }

    @Override
    public int updateDismissTheApproval(Long id) {
        return tycResearchMapper.updateDismissTheApproval(id);
    }

    @Override
    public int consent(Long id) {
        return tycResearchMapper.consent(id);
    }

    @Override
    public int updateBeApproved(Long id) {
        return tycResearchMapper.updateBeApproved(id);
    }

    @Override
    public List<TycResearch> selectYcTaskListAdmin(TycResearch tycResearch) {
        return tycResearchMapper.selectYcTaskListAdmin(tycResearch);
    }

}
